<template>
	<view class="publicFacBox row">
		<view class="list" v-for="(item,i) in props.facilitiesList" :key="i">
			<view class="icon">
				<image class="img" :src="item.cssClass"></image>
			</view>
			<view class="text">{{item.label}}</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue'
const props = defineProps({
	facilitiesList: {
		type: Array,
		default: () => []
	}
})
onMounted(() => {
	console.log(props.facilitiesList)
})
</script>

<style lang="scss" scoped>
.publicFacBox{
	flex-wrap: wrap;
	.list{
		flex: 0 0 20%;
		text-align: center;
		margin: 0 0 42rpx;
		.icon{
			width: 44rpx;
			height: 44rpx;
			margin: 0 auto;
		}
		.text{
			line-height: 36rpx;
			margin: 4rpx 0 0;
		}
	}
}	
</style>